#ifndef __COMMANDS__
#define __COMMANDS__

#include "STM32f10x.h"
#include "stm32f10x_gpio.h"

#define INFO		  "\n<I>"
#define WARNING		  "\n<W>"
#define ERROR		  "\n<E>"
#define ANSWER		  "\n<A>"

#define BOARD_ID          "STM32VLD\n"

#define CMD_GET_ID        'i'
#define CMD_SET_SPEED     's'
#define CMD_GET_SPEED     'g'
#define CMD_STOP          'S'
#define CMD_GET_POS       'p'
#define CMD_GET_ADC       'a'

#define CMD_FORWARD       'f'
#define CMD_BACK          'b'
#define CMD_RIGHT         'r'
#define CMD_LEFT          'l'

#define CMD_ROUTE         'R'

#define CMD_SET_SERVO_MAX 'V'
#define CMD_SET_SERVO     'v'
#define CMD_GET_SERVO     'Z'

#define MAX_ROUTED        50

/* Process command from host */
void CMD_Process(char *cmd);

#endif

